package com.nb.common.response;

/**
 * 数据请求响应对象
 * Created by fly on 2017/11/13.
 */
public class ResponseVO<T> {

    private int dealCode;
    private String dealMessage;
    private T object;

    public ResponseVO() {
    }

    public ResponseVO(int dealCode, String dealMessage) {
        this.dealCode = dealCode;
        this.dealMessage = dealMessage;
    }

    public ResponseVO(int dealCode, String dealMessage, T object) {
        this.dealCode = dealCode;
        this.dealMessage = dealMessage;
        this.object = object;
    }

    public int getDealCode() {
        return dealCode;
    }

    public void setDealCode(int dealCode) {
        this.dealCode = dealCode;
    }

    public String getDealMessage() {
        return dealMessage;
    }

    public void setDealMessage(String dealMessage) {
        this.dealMessage = dealMessage;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(T object) {
        this.object = object;
    }

    public ResponseVO<T> setResponseVO(int dealCode, String dealMessage) {
        this.dealCode = dealCode;
        this.dealMessage = dealMessage;
        return this;
    }

    public ResponseVO<T> setResponseVO(int dealCode, String dealMessage, T object) {
        this.dealCode = dealCode;
        this.dealMessage = dealMessage;
        this.object = object;
        return this;
    }
}
